home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / HILists.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  66KB  |  1,635 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: HILists.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emith.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_HIAbstractList_h
  11. #define SOM_HIAbstractList_h
  12.  
  13.  
  14. /*
  15.  * Passthru lines: File: "C.h", "before"
  16.  */
  17. #include <HIImagingObjects.h>
  18. #include <HIListTypes.h>
  19.  
  20. #include <som.h>
  21.  
  22. /*
  23.  * -- This emitter treats Method Tokens as Thunks by default.
  24.  * -- Use the sc modifier "nothunks" to change this default
  25.  */
  26. #undef somresolve_
  27. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  28.  
  29. /*
  30.  * Define the class name as an object type
  31.  */
  32. #ifndef HIAbstractList
  33. #define HIAbstractList SOMObject
  34. #endif
  35. #include <HIPanels.h>
  36.  
  37. /*
  38.  * Start of user-defined types:
  39.  */
  40. #ifndef SOMClass
  41.     #define SOMClass SOMObject
  42. #endif /* SOMClass */
  43. #ifndef SOMObject
  44.     #define SOMObject SOMObject
  45. #endif /* SOMObject */
  46. #ifndef HIWindow
  47.     #define HIWindow SOMObject
  48. #endif /* HIWindow */
  49. #ifndef HIEmbeddingPanel
  50.     #define HIEmbeddingPanel SOMObject
  51. #endif /* HIEmbeddingPanel */
  52.  
  53. /*
  54.  * End of user-defined types.
  55.  */
  56.  
  57. #define HIAbstractList_MajorVersion 0
  58. #define HIAbstractList_MinorVersion 0
  59.  
  60. /*
  61.  * External name shortening if required
  62.  */
  63. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  64. #define HIAbstractListClassData d
  65. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  66. /*--------------Migration------------*/
  67.  
  68. #ifdef OLDIBMSOMAPISUPPORT
  69. #define HIAbstractList_classObj somNewClassReference(HIAbstractList)
  70. #define _HIAbstractList HIAbstractList_classObj
  71. #define HIAbstractListCClassData HIAbstractListClassData
  72. #define HIAbstractListNewClass(major,minor) somNewVersionedClassReference(HIAbstractList,major,minor)
  73. #endif
  74.  
  75. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  76. #define HIAbstractListMetaClass SOMClass
  77.  
  78. #if PRAGMA_ALIGN_SUPPORTED
  79. #  pragma options align=power
  80. #endif
  81.  
  82. /*
  83.  * Declare the class data structure
  84.  */
  85. SOMEXTERN struct HIAbstractListClassDataStructure {
  86. #ifdef OLDIBMSOMAPISUPPORT
  87.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  88. #else
  89.     long zero;
  90. #endif
  91.     somStaticClassInfo *sci;
  92.     somDToken        instanceDataToken;
  93.     long reserved [3];
  94.     somMToken InitAbstractList;
  95.     somMToken AddItems;
  96.     somMToken DeleteItem;
  97.     somMToken SetItemImage;
  98.     somMToken GetItemImage;
  99.     somMToken SetItemMark;
  100.     somMToken GetItemMark;
  101.     somMToken SetItemIcon;
  102.     somMToken GetItemIcon;
  103.     somMToken SetItemChild;
  104.     somMToken GetItemChild;
  105.     somMToken SetItemEnabledState;
  106.     somMToken GetItemEnabledState;
  107.     somMToken SetItemAttributes;
  108.     somMToken GetItemAttributes;
  109.     somMToken SetItemRefLabel;
  110.     somMToken GetItemRefLabel;
  111.     somMToken GetItemCount;
  112.     somMToken GetItemRect;
  113.     somMToken HitTest;
  114.     somMToken SelectItem;
  115.     somMToken DeselectItem;
  116.     somMToken GetSelectedItem;
  117.     somMToken AddItemCollectionItem;
  118.     somMToken GetItemCollectionItemData;
  119.     somMToken RemoveItemCollectionItem;
  120.     somMToken reserved0;
  121. } SOMDLINK HIAbstractListClassData;
  122.  
  123. #if PRAGMA_ALIGN_SUPPORTED
  124. #  pragma options align=reset
  125. #endif
  126.  
  127. #if !defined(HIAbstractList_Class_Source) && !defined(SOM_Module_hilists_Source)
  128. #if PRAGMA_IMPORT_SUPPORTED
  129. #pragma import list HIAbstractListClassData
  130. #endif
  131. #endif
  132.  
  133.  
  134. /*
  135.  * New macro for HIAbstractList
  136.  */
  137. #define HIAbstractListNew() somNewObject(HIAbstractList)
  138.  
  139. /*
  140.  * New Method: InitAbstractList
  141.  */
  142. typedef OSStatus   (SOMLINK *somTD_HIAbstractList_InitAbstractList)(HIAbstractList *somSelf, Environment *ev,
  143.         RefLabel* identifier,
  144.         HIWindow* window,
  145.         Rect* bounds);
  146. #define somMD_HIAbstractList_InitAbstractList "::HIAbstractList::InitAbstractList"
  147. #define HIAbstractList_InitAbstractList(somSelf,ev,identifier,window,bounds) \
  148.     (SOM_Resolve(somSelf, HIAbstractList, InitAbstractList) \
  149.     (somSelf,ev,identifier,window,bounds))
  150. #ifndef SOMGD_InitAbstractList
  151.     #if defined _InitAbstractList || defined __InitAbstractList
  152.         #undef _InitAbstractList
  153.         #undef __InitAbstractList
  154.         #define SOMGD_InitAbstractList 1
  155.     #else
  156.         #define _InitAbstractList HIAbstractList_InitAbstractList
  157.     #endif /* _InitAbstractList */
  158. #endif /* SOMGD_InitAbstractList */
  159.  
  160. /*
  161.  * New Method: AddItems
  162.  */
  163. typedef OSStatus   (SOMLINK *somTD_HIAbstractList_AddItems)(HIAbstractList *somSelf, Environment *ev,
  164.         HIItemIndex index,
  165.         UInt32 numItems);
  166. #define somMD_HIAbstractList_AddItems "::HIAbstractList::AddItems"
  167. #define HIAbstractList_AddItems(somSelf,ev,index,numItems) \
  168.     (SOM_Resolve(somSelf, HIAbstractList, AddItems) \
  169.     (somSelf,ev,index,numItems))
  170. #ifndef SOMGD_AddItems
  171.     #if defined _AddItems || defined __AddItems
  172.         #undef _AddItems
  173.         #undef __AddItems
  174.         #define SOMGD_AddItems 1
  175.     #else
  176.         #define _AddItems HIAbstractList_AddItems
  177.     #endif /* _AddItems */
  178. #endif /* SOMGD_AddItems */
  179.  
  180. /*
  181.  * New Method: DeleteItem
  182.  */
  183. typedef OSStatus   (SOMLINK *somTD_HIAbstractList_DeleteItem)(HIAbstractList *somSelf, Environment *ev,
  184.         HIItemIndex index);
  185. #define somMD_HIAbstractList_DeleteItem "::HIAbstractList::DeleteItem"
  186. #define HIAbstractList_DeleteItem(somSelf,ev,index) \
  187.     (SOM_Resolve(somSelf, HIAbstractList, DeleteItem) \
  188.     (somSelf,ev,index))
  189. #ifndef SOMGD_DeleteItem
  190.     #if defined _DeleteItem || defined __DeleteItem
  191.         #undef _DeleteItem
  192.         #undef __DeleteItem
  193.         #define SOMGD_DeleteItem 1
  194.     #else
  195.         #define _DeleteItem HIAbstractList_DeleteItem
  196.     #endif /* _DeleteItem */
  197. #endif /* SOMGD_DeleteItem */
  198.  
  199. /*
  200.  * New Method: SetItemImage
  201.  */
  202. typedef OSStatus   (SOMLINK *somTD_HIAbstractList_SetItemImage)(HIAbstractList *somSelf, Environment *ev,
  203.         HIItemIndex index,
  204.         ConstHIImageRef imageRef,
  205.         HIAdoptionFlags imageAdoptionFlags);
  206. #define somMD_HIAbstractList_SetItemImage "::HIAbstractList::SetItemImage"
  207. #define HIAbstractList_SetItemImage(somSelf,ev,index,imageRef,imageAdoptionFlags) \
  208.     (SOM_Resolve(somSelf, HIAbstractList, SetItemImage) \
  209.     (somSelf,ev,index,imageRef,imageAdoptionFlags))
  210. #ifndef SOMGD_SetItemImage
  211.     #if defined _SetItemImage || defined __SetItemImage
  212.         #undef _SetItemImage
  213.         #undef __SetItemImage
  214.         #define SOMGD_SetItemImage 1
  215.     #else
  216.         #define _SetItemImage HIAbstractList_SetItemImage
  217.     #endif /* _SetItemImage */
  218. #endif /* SOMGD_SetItemImage */
  219.  
  220. /*
  221.  * New Method: GetItemImage
  222.  */
  223. typedef OSStatus   (SOMLINK *somTD_HIAbstractList_GetItemImage)(HIAbstractList *somSelf, Environment *ev,
  224.         HIItemIndex index,
  225.         HIImageRef* imageRefPtr);
  226. #define somMD_HIAbstractList_GetItemImage "::HIAbstractList::GetItemImage"
  227. #define HIAbstractList_GetItemImage(somSelf,ev,index,imageRefPtr) \
  228.     (SOM_Resolve(somSelf, HIAbstractList, GetItemImage) \
  229.     (somSelf,ev,index,imageRefPtr))
  230. #ifndef SOMGD_GetItemImage
  231.     #if defined _GetItemImage || defined __GetItemImage
  232.         #undef _GetItemImage
  233.         #undef __GetItemImage
  234.         #define SOMGD_GetItemImage 1
  235.     #else
  236.         #define _GetItemImage HIAbstractList_GetItemImage
  237.     #endif /* _GetItemImage */
  238. #endif /* SOMGD_GetItemImage */
  239.  
  240. /*
  241.  * New Method: SetItemMark
  242.  */
  243. typedef OSStatus   (SOMLINK *somTD_HIAbstractList_SetItemMark)(HIAbstractList *somSelf, Environment *ev,
  244.         HIItemIndex index,
  245.         UInt16 markChar);
  246. #define somMD_HIAbstractList_SetItemMark "::HIAbstractList::SetItemMark"
  247. #define HIAbstractList_SetItemMark(somSelf,ev,index,markChar) \
  248.     (SOM_Resolve(somSelf, HIAbstractList, SetItemMark) \
  249.     (somSelf,ev,index,markChar))
  250. #ifndef SOMGD_SetItemMark
  251.     #if defined _SetItemMark || defined __SetItemMark
  252.         #undef _SetItemMark
  253.         #undef __SetItemMark
  254.         #define SOMGD_SetItemMark 1
  255.     #else
  256.         #define _SetItemMark HIAbstractList_SetItemMark
  257.     #endif /* _SetItemMark */
  258. #endif /* SOMGD_SetItemMark */
  259.  
  260. /*
  261.  * New Method: GetItemMark
  262.  */
  263. typedef UInt16   (SOMLINK *somTD_HIAbstractList_GetItemMark)(HIAbstractList *somSelf, Environment *ev,
  264.         HIItemIndex index);
  265. #define somMD_HIAbstractList_GetItemMark "::HIAbstractList::GetItemMark"
  266. #define HIAbstractList_GetItemMark(somSelf,ev,index) \
  267.     (SOM_Resolve(somSelf, HIAbstractList, GetItemMark) \
  268.     (somSelf,ev,index))
  269. #ifndef SOMGD_GetItemMark
  270.     #if defined _GetItemMark || defined __GetItemMark
  271.         #undef _GetItemMark
  272.         #undef __GetItemMark
  273.         #define SOMGD_GetItemMark 1
  274.     #else
  275.         #define _GetItemMark HIAbstractList_GetItemMark
  276.     #endif /* _GetItemMark */
  277. #endif /* SOMGD_GetItemMark */
  278.  
  279. /*
  280.  * New Method: SetItemIcon
  281.  */
  282. typedef OSStatus   (SOMLINK *somTD_HIAbstractList_SetItemIcon)(HIAbstractList *somSelf, Environment *ev,
  283.         HIItemIndex index,
  284.         Handle iconSuite);
  285. #define somMD_HIAbstractList_SetItemIcon "::HIAbstractList::SetItemIcon"
  286. #define HIAbstractList_SetItemIcon(somSelf,ev,index,iconSuite) \
  287.     (SOM_Resolve(somSelf, HIAbstractList, SetItemIcon) \
  288.     (somSelf,ev,index,iconSuite))
  289. #ifndef SOMGD_SetItemIcon
  290.     #if defined _SetItemIcon || defined __SetItemIcon
  291.         #undef _SetItemIcon
  292.         #undef __SetItemIcon
  293.         #define SOMGD_SetItemIcon 1
  294.     #else
  295.         #define _SetItemIcon HIAbstractList_SetItemIcon
  296.     #endif /* _SetItemIcon */
  297. #endif /* SOMGD_SetItemIcon */
  298.  
  299. /*
  300.  * New Method: GetItemIcon
  301.  */
  302. typedef Handle   (SOMLINK *somTD_HIAbstractList_GetItemIcon)(HIAbstractList *somSelf, Environment *ev,
  303.         HIItemIndex index);
  304. #define somMD_HIAbstractList_GetItemIcon "::HIAbstractList::GetItemIcon"
  305. #define HIAbstractList_GetItemIcon(somSelf,ev,index) \
  306.     (SOM_Resolve(somSelf, HIAbstractList, GetItemIcon) \
  307.     (somSelf,ev,index))
  308. #ifndef SOMGD_GetItemIcon
  309.     #if defined _GetItemIcon || defined __GetItemIcon
  310.         #undef _GetItemIcon
  311.         #undef __GetItemIcon
  312.         #define SOMGD_GetItemIcon 1
  313.     #else
  314.         #define _GetItemIcon HIAbstractList_GetItemIcon
  315.     #endif /* _GetItemIcon */
  316. #endif /* SOMGD_GetItemIcon */
  317.  
  318. /*
  319.  * New Method: SetItemChild
  320.  */
  321. typedef OSStatus   (SOMLINK *somTD_HIAbstractList_SetItemChild)(HIAbstractList *somSelf, Environment *ev,
  322.         HIItemIndex index,
  323.         HIAbstractList* child);
  324. #define somMD_HIAbstractList_SetItemChild "::HIAbstractList::SetItemChild"
  325. #define HIAbstractList_SetItemChild(somSelf,ev,index,child) \
  326.     (SOM_Resolve(somSelf, HIAbstractList, SetItemChild) \
  327.     (somSelf,ev,index,child))
  328. #ifndef SOMGD_SetItemChild
  329.     #if defined _SetItemChild || defined __SetItemChild
  330.         #undef _SetItemChild
  331.         #undef __SetItemChild
  332.         #define SOMGD_SetItemChild 1
  333.     #else
  334.         #define _SetItemChild HIAbstractList_SetItemChild
  335.     #endif /* _SetItemChild */
  336. #endif /* SOMGD_SetItemChild */
  337.  
  338. /*
  339.  * New Method: GetItemChild
  340.  */
  341. typedef OSStatus   (SOMLINK *somTD_HIAbstractList_GetItemChild)(HIAbstractList *somSelf, Environment *ev,
  342.         HIItemIndex index,
  343.         HIAbstractList** child);
  344. #define somMD_HIAbstractList_GetItemChild "::HIAbstractList::GetItemChild"
  345. #define HIAbstractList_GetItemChild(somSelf,ev,index,child) \
  346.     (SOM_Resolve(somSelf, HIAbstractList, GetItemChild) \
  347.     (somSelf,ev,index,child))
  348. #ifndef SOMGD_GetItemChild
  349.     #if defined _GetItemChild || defined __GetItemChild
  350.         #undef _GetItemChild
  351.         #undef __GetItemChild
  352.         #define SOMGD_GetItemChild 1
  353.     #else
  354.         #define _GetItemChild HIAbstractList_GetItemChild
  355.     #endif /* _GetItemChild */
  356. #endif /* SOMGD_GetItemChild */
  357.  
  358. /*
  359.  * New Method: SetItemEnabledState
  360.  */
  361. typedef OSStatus   (SOMLINK *somTD_HIAbstractList_SetItemEnabledState)(HIAbstractList *somSelf, Environment *ev,
  362.         HIItemIndex index,
  363.         HIItemState enableState);
  364. #define somMD_HIAbstractList_SetItemEnabledState "::HIAbstractList::SetItemEnabledState"
  365. #define HIAbstractList_SetItemEnabledState(somSelf,ev,index,enableState) \
  366.     (SOM_Resolve(somSelf, HIAbstractList, SetItemEnabledState) \
  367.     (somSelf,ev,index,enableState))
  368. #ifndef SOMGD_SetItemEnabledState
  369.     #if defined _SetItemEnabledState || defined __SetItemEnabledState
  370.         #undef _SetItemEnabledState
  371.         #undef __SetItemEnabledState
  372.         #define SOMGD_SetItemEnabledState 1
  373.     #else
  374.         #define _SetItemEnabledState HIAbstractList_SetItemEnabledState
  375.     #endif /* _SetItemEnabledState */
  376. #endif /* SOMGD_SetItemEnabledState */
  377.  
  378. /*
  379.  * New Method: GetItemEnabledState
  380.  */
  381. typedef HIItemState   (SOMLINK *somTD_HIAbstractList_GetItemEnabledState)(HIAbstractList *somSelf, Environment *ev,
  382.         HIItemIndex index);
  383. #define somMD_HIAbstractList_GetItemEnabledState "::HIAbstractList::GetItemEnabledState"
  384. #define HIAbstractList_GetItemEnabledState(somSelf,ev,index) \
  385.     (SOM_Resolve(somSelf, HIAbstractList, GetItemEnabledState) \
  386.     (somSelf,ev,index))
  387. #ifndef SOMGD_GetItemEnabledState
  388.     #if defined _GetItemEnabledState || defined __GetItemEnabledState
  389.         #undef _GetItemEnabledState
  390.         #undef __GetItemEnabledState
  391.         #define SOMGD_GetItemEnabledState 1
  392.     #else
  393.         #define _GetItemEnabledState HIAbstractList_GetItemEnabledState
  394.     #endif /* _GetItemEnabledState */
  395. #endif /* SOMGD_GetItemEnabledState */
  396.  
  397. /*
  398.  * New Method: SetItemAttributes
  399.  */
  400. typedef OSStatus   (SOMLINK *somTD_HIAbstractList_SetItemAttributes)(HIAbstractList *somSelf, Environment *ev,
  401.         HIItemIndex index,
  402.         HIItemAttributes attributes);
  403. #define somMD_HIAbstractList_SetItemAttributes "::HIAbstractList::SetItemAttributes"
  404. #define HIAbstractList_SetItemAttributes(somSelf,ev,index,attributes) \
  405.     (SOM_Resolve(somSelf, HIAbstractList, SetItemAttributes) \
  406.     (somSelf,ev,index,attributes))
  407. #ifndef SOMGD_SetItemAttributes
  408.     #if defined _SetItemAttributes || defined __SetItemAttributes
  409.         #undef _SetItemAttributes
  410.         #undef __SetItemAttributes
  411.         #define SOMGD_SetItemAttributes 1
  412.     #else
  413.         #define _SetItemAttributes HIAbstractList_SetItemAttributes
  414.     #endif /* _SetItemAttributes */
  415. #endif /* SOMGD_SetItemAttributes */
  416.  
  417. /*
  418.  * New Method: GetItemAttributes
  419.  */
  420. typedef HIItemAttributes   (SOMLINK *somTD_HIAbstractList_GetItemAttributes)(HIAbstractList *somSelf, Environment *ev,
  421.         HIItemIndex index);
  422. #define somMD_HIAbstractList_GetItemAttributes "::HIAbstractList::GetItemAttributes"
  423. #define HIAbstractList_GetItemAttributes(somSelf,ev,index) \
  424.     (SOM_Resolve(somSelf, HIAbstractList, GetItemAttributes) \
  425.     (somSelf,ev,index))
  426. #ifndef SOMGD_GetItemAttributes
  427.     #if defined _GetItemAttributes || defined __GetItemAttributes
  428.         #undef _GetItemAttributes
  429.         #undef __GetItemAttributes
  430.         #define SOMGD_GetItemAttributes 1
  431.     #else
  432.         #define _GetItemAttributes HIAbstractList_GetItemAttributes
  433.     #endif /* _GetItemAttributes */
  434. #endif /* SOMGD_GetItemAttributes */
  435.  
  436. /*
  437.  * New Method: SetItemRefLabel
  438.  */
  439. typedef OSStatus   (SOMLINK *somTD_HIAbstractList_SetItemRefLabel)(HIAbstractList *somSelf, Environment *ev,
  440.         HIItemIndex index,
  441.         RefLabel* identifier);
  442. #define somMD_HIAbstractList_SetItemRefLabel "::HIAbstractList::SetItemRefLabel"
  443. #define HIAbstractList_SetItemRefLabel(somSelf,ev,index,identifier) \
  444.     (SOM_Resolve(somSelf, HIAbstractList, SetItemRefLabel) \
  445.     (somSelf,ev,index,identifier))
  446. #ifndef SOMGD_SetItemRefLabel
  447.     #if defined _SetItemRefLabel || defined __SetItemRefLabel
  448.         #undef _SetItemRefLabel
  449.         #undef __SetItemRefLabel
  450.         #define SOMGD_SetItemRefLabel 1
  451.     #else
  452.         #define _SetItemRefLabel HIAbstractList_SetItemRefLabel
  453.     #endif /* _SetItemRefLabel */
  454. #endif /* SOMGD_SetItemRefLabel */
  455.  
  456. /*
  457.  * New Method: GetItemRefLabel
  458.  */
  459. typedef OSStatus   (SOMLINK *somTD_HIAbstractList_GetItemRefLabel)(HIAbstractList *somSelf, Environment *ev,
  460.         HIItemIndex index,
  461.         RefLabel* identifier);
  462. #define somMD_HIAbstractList_GetItemRefLabel "::HIAbstractList::GetItemRefLabel"
  463. #define HIAbstractList_GetItemRefLabel(somSelf,ev,index,identifier) \
  464.     (SOM_Resolve(somSelf, HIAbstractList, GetItemRefLabel) \
  465.     (somSelf,ev,index,identifier))
  466. #ifndef SOMGD_GetItemRefLabel
  467.     #if defined _GetItemRefLabel || defined __GetItemRefLabel
  468.         #undef _GetItemRefLabel
  469.         #undef __GetItemRefLabel
  470.         #define SOMGD_GetItemRefLabel 1
  471.     #else
  472.         #define _GetItemRefLabel HIAbstractList_GetItemRefLabel
  473.     #endif /* _GetItemRefLabel */
  474. #endif /* SOMGD_GetItemRefLabel */
  475.  
  476. /*
  477.  * New Method: GetItemCount
  478.  */
  479. typedef UInt32   (SOMLINK *somTD_HIAbstractList_GetItemCount)(HIAbstractList *somSelf, Environment *ev);
  480. #define somMD_HIAbstractList_GetItemCount "::HIAbstractList::GetItemCount"
  481. #define HIAbstractList_GetItemCount(somSelf,ev) \
  482.     (SOM_Resolve(somSelf, HIAbstractList, GetItemCount) \
  483.     (somSelf,ev))
  484. #ifndef SOMGD_GetItemCount
  485.     #if defined _GetItemCount || defined __GetItemCount
  486.         #undef _GetItemCount
  487.         #undef __GetItemCount
  488.         #define SOMGD_GetItemCount 1
  489.     #else
  490.         #define _GetItemCount HIAbstractList_GetItemCount
  491.     #endif /* _GetItemCount */
  492. #endif /* SOMGD_GetItemCount */
  493.  
  494. /*
  495.  * New Method: SelectItem
  496.  */
  497. typedef void   (SOMLINK *somTD_HIAbstractList_SelectItem)(HIAbstractList *somSelf, Environment *ev,
  498.         HIItemIndex index);
  499. #define somMD_HIAbstractList_SelectItem "::HIAbstractList::SelectItem"
  500. #define HIAbstractList_SelectItem(somSelf,ev,index) \
  501.     (SOM_Resolve(somSelf, HIAbstractList, SelectItem) \
  502.     (somSelf,ev,index))
  503. #ifndef SOMGD_SelectItem
  504.     #if defined _SelectItem || defined __SelectItem
  505.         #undef _SelectItem
  506.         #undef __SelectItem
  507.         #define SOMGD_SelectItem 1
  508.     #else
  509.         #define _SelectItem HIAbstractList_SelectItem
  510.     #endif /* _SelectItem */
  511. #endif /* SOMGD_SelectItem */
  512.  
  513. /*
  514.  * New Method: DeselectItem
  515.  */
  516. typedef void   (SOMLINK *somTD_HIAbstractList_DeselectItem)(HIAbstractList *somSelf, Environment *ev,
  517.         HIItemIndex index);
  518. #define somMD_HIAbstractList_DeselectItem "::HIAbstractList::DeselectItem"
  519. #define HIAbstractList_DeselectItem(somSelf,ev,index) \
  520.     (SOM_Resolve(somSelf, HIAbstractList, DeselectItem) \
  521.     (somSelf,ev,index))
  522. #ifndef SOMGD_DeselectItem
  523.     #if defined _DeselectItem || defined __DeselectItem
  524.         #undef _DeselectItem
  525.         #undef __DeselectItem
  526.         #define SOMGD_DeselectItem 1
  527.     #else
  528.         #define _DeselectItem HIAbstractList_DeselectItem
  529.     #endif /* _DeselectItem */
  530. #endif /* SOMGD_DeselectItem */
  531.  
  532. /*
  533.  * New Method: GetSelectedItem
  534.  */
  535. typedef HIItemIndex   (SOMLINK *somTD_HIAbstractList_GetSelectedItem)(HIAbstractList *somSelf, Environment *ev);
  536. #define somMD_HIAbstractList_GetSelectedItem "::HIAbstractList::GetSelectedItem"
  537. #define HIAbstractList_GetSelectedItem(somSelf,ev) \
  538.     (SOM_Resolve(somSelf, HIAbstractList, GetSelectedItem) \
  539.     (somSelf,ev))
  540. #ifndef SOMGD_GetSelectedItem
  541.     #if defined _GetSelectedItem || defined __GetSelectedItem
  542.         #undef _GetSelectedItem
  543.         #undef __GetSelectedItem
  544.         #define SOMGD_GetSelectedItem 1
  545.     #else
  546.         #define _GetSelectedItem HIAbstractList_GetSelectedItem
  547.     #endif /* _GetSelectedItem */
  548. #endif /* SOMGD_GetSelectedItem */
  549.  
  550. /*
  551.  * New Method: AddItemCollectionItem
  552.  */
  553. typedef OSStatus   (SOMLINK *somTD_HIAbstractList_AddItemCollectionItem)(HIAbstractList *somSelf, Environment *ev,
  554.         HIItemIndex index,
  555.         CollectionTag tag,
  556.         UInt32 dataSize,
  557.         void* data);
  558. #define somMD_HIAbstractList_AddItemCollectionItem "::HIAbstractList::AddItemCollectionItem"
  559. #define HIAbstractList_AddItemCollectionItem(somSelf,ev,index,tag,dataSize,data) \
  560.     (SOM_Resolve(somSelf, HIAbstractList, AddItemCollectionItem) \
  561.     (somSelf,ev,index,tag,dataSize,data))
  562. #ifndef SOMGD_AddItemCollectionItem
  563.     #if defined _AddItemCollectionItem || defined __AddItemCollectionItem
  564.         #undef _AddItemCollectionItem
  565.         #undef __AddItemCollectionItem
  566.         #define SOMGD_AddItemCollectionItem 1
  567.     #else
  568.         #define _AddItemCollectionItem HIAbstractList_AddItemCollectionItem
  569.     #endif /* _AddItemCollectionItem */
  570. #endif /* SOMGD_AddItemCollectionItem */
  571.  
  572. /*
  573.  * New Method: GetItemCollectionItemData
  574.  */
  575. typedef OSStatus   (SOMLINK *somTD_HIAbstractList_GetItemCollectionItemData)(HIAbstractList *somSelf, Environment *ev,
  576.         HIItemIndex index,
  577.         CollectionTag tag,
  578.         UInt32 dataSizeIn,
  579.         UInt32* dataSizeOut,
  580.         void* data);
  581. #define somMD_HIAbstractList_GetItemCollectionItemData "::HIAbstractList::GetItemCollectionItemData"
  582. #define HIAbstractList_GetItemCollectionItemData(somSelf,ev,index,tag,dataSizeIn,dataSizeOut,data) \
  583.     (SOM_Resolve(somSelf, HIAbstractList, GetItemCollectionItemData) \
  584.     (somSelf,ev,index,tag,dataSizeIn,dataSizeOut,data))
  585. #ifndef SOMGD_GetItemCollectionItemData
  586.     #if defined _GetItemCollectionItemData || defined __GetItemCollectionItemData
  587.         #undef _GetItemCollectionItemData
  588.         #undef __GetItemCollectionItemData
  589.         #define SOMGD_GetItemCollectionItemData 1
  590.     #else
  591.         #define _GetItemCollectionItemData HIAbstractList_GetItemCollectionItemData
  592.     #endif /* _GetItemCollectionItemData */
  593. #endif /* SOMGD_GetItemCollectionItemData */
  594.  
  595. /*
  596.  * New Method: RemoveItemCollectionItem
  597.  */
  598. typedef OSStatus   (SOMLINK *somTD_HIAbstractList_RemoveItemCollectionItem)(HIAbstractList *somSelf, Environment *ev,
  599.         HIItemIndex index,
  600.         CollectionTag tag);
  601. #define somMD_HIAbstractList_RemoveItemCollectionItem "::HIAbstractList::RemoveItemCollectionItem"
  602. #define HIAbstractList_RemoveItemCollectionItem(somSelf,ev,index,tag) \
  603.     (SOM_Resolve(somSelf, HIAbstractList, RemoveItemCollectionItem) \
  604.     (somSelf,ev,index,tag))
  605. #ifndef SOMGD_RemoveItemCollectionItem
  606.     #if defined _RemoveItemCollectionItem || defined __RemoveItemCollectionItem
  607.         #undef _RemoveItemCollectionItem
  608.         #undef __RemoveItemCollectionItem
  609.         #define SOMGD_RemoveItemCollectionItem 1
  610.     #else
  611.         #define _RemoveItemCollectionItem HIAbstractList_RemoveItemCollectionItem
  612.     #endif /* _RemoveItemCollectionItem */
  613. #endif /* SOMGD_RemoveItemCollectionItem */
  614. #ifndef SOM_DONT_USE_INHERITED_MACROS
  615. #define HIAbstractList_GetEmbeddingParent HIPanel_GetEmbeddingParent
  616. #define HIAbstractList_InitPanel HIPanel_InitPanel
  617. #define HIAbstractList_RegisterInterestInAppleEvent HIPanel_RegisterInterestInAppleEvent
  618. #define HIAbstractList_HasValidContent HIPanel_HasValidContent
  619. #define HIAbstractList_GetDeepCollectionItemData HIPanel_GetDeepCollectionItemData
  620. #define HIAbstractList_GetWindow HIObject_GetWindow
  621. #define HIAbstractList_GetPort HIObject_GetPort
  622. #define HIAbstractList_GetRefLabel HIObject_GetRefLabel
  623. #define HIAbstractList_GetCollection HIObject_GetCollection
  624. #define HIAbstractList_Init HIObject_Init
  625. #define HIAbstractList_Terminate HIObject_Terminate
  626. #define HIAbstractList_Clone HIObject_Clone
  627. #define HIAbstractList_Release HIObject_Release
  628. #define HIAbstractList_GetOwnerCount HIObject_GetOwnerCount
  629. #define HIAbstractList_InitFromAERecord HIObject_InitFromAERecord
  630. #define HIAbstractList_WriteToAERecord HIObject_WriteToAERecord
  631. #define HIAbstractList_CalculateOptimalSize HIObject_CalculateOptimalSize
  632. #define HIAbstractList_GetBoundingRect HIObject_GetBoundingRect
  633. #define HIAbstractList_SetBoundingRect HIObject_SetBoundingRect
  634. #define HIAbstractList_SetPosition HIObject_SetPosition
  635. #define HIAbstractList_SetSize HIObject_SetSize
  636. #define HIAbstractList_GetUpdateRect HIObject_GetUpdateRect
  637. #define HIAbstractList_Enable HIObject_Enable
  638. #define HIAbstractList_Disable HIObject_Disable
  639. #define HIAbstractList_IsEnabled HIObject_IsEnabled
  640. #define HIAbstractList_Show HIObject_Show
  641. #define HIAbstractList_Hide HIObject_Hide
  642. #define HIAbstractList_IsVisible HIObject_IsVisible
  643. #define HIAbstractList_HandleAppleEvent HIObject_HandleAppleEvent
  644. #define HIAbstractList_HandleActivate HIObject_HandleActivate
  645. #define HIAbstractList_HandleDeactivate HIObject_HandleDeactivate
  646. #define HIAbstractList_HandleNavigation HIObject_HandleNavigation
  647. #define HIAbstractList_HandleMouseDownInContent HIObject_HandleMouseDownInContent
  648. #define HIAbstractList_HandleMouseMovedInContent HIObject_HandleMouseMovedInContent
  649. #define HIAbstractList_HandleMouseStoppedMovingInContent HIObject_HandleMouseStoppedMovingInContent
  650. #define HIAbstractList_HandleMouseUpInContent HIObject_HandleMouseUpInContent
  651. #define HIAbstractList_TakeUserInputFocus HIObject_TakeUserInputFocus
  652. #define HIAbstractList_ReleaseUserInputFocus HIObject_ReleaseUserInputFocus
  653. #define HIAbstractList_HasUserInputFocus HIObject_HasUserInputFocus
  654. #define HIAbstractList_CanReleaseUserInputFocus HIObject_CanReleaseUserInputFocus
  655. #define HIAbstractList_SetUserInputFocusFlags HIObject_SetUserInputFocusFlags
  656. #define HIAbstractList_GetUserInputFocusFlags HIObject_GetUserInputFocusFlags
  657. #define HIAbstractList_SetTitle HIObject_SetTitle
  658. #define HIAbstractList_GetTitle HIObject_GetTitle
  659. #define HIAbstractList_Draw HIObject_Draw
  660. #define HIAbstractList_Erase HIObject_Erase
  661. #define HIAbstractList_Invalidate HIObject_Invalidate
  662. #define HIAbstractList_GetDrawingMode HIObject_GetDrawingMode
  663. #define HIAbstractList_SetDrawingMode HIObject_SetDrawingMode
  664. #define HIAbstractList_SetBackgroundPattern HIObject_SetBackgroundPattern
  665. #define HIAbstractList_GetBackgroundPattern HIObject_GetBackgroundPattern
  666. #define HIAbstractList_Cut HIObject_Cut
  667. #define HIAbstractList_Copy HIObject_Copy
  668. #define HIAbstractList_Paste HIObject_Paste
  669. #define HIAbstractList_Clear HIObject_Clear
  670. #define HIAbstractList_GetClipboardSupportFlags HIObject_GetClipboardSupportFlags
  671. #define HIAbstractList_AddStateChangeCallback HIObject_AddStateChangeCallback
  672. #define HIAbstractList_RemoveStateChangeCallback HIObject_RemoveStateChangeCallback
  673. #define HIAbstractList_GetHIObjectFromRefLabel HIObject_GetHIObjectFromRefLabel
  674. #define HIAbstractList_GetNewHIObject HIObject_GetNewHIObject
  675. #define HIAbstractList_GetNewHIObjectFromResource HIObject_GetNewHIObjectFromResource
  676. #define HIAbstractList_DrawContent HIObject_DrawContent
  677. #define HIAbstractList_EraseContent HIObject_EraseContent
  678. #define HIAbstractList_TranslatePoint HIObject_TranslatePoint
  679. #define HIAbstractList_TranslateRect HIObject_TranslateRect
  680. #define HIAbstractList_StateChanged HIObject_StateChanged
  681. #define HIAbstractList_SetClipboardSupportFlags HIObject_SetClipboardSupportFlags
  682. #define HIAbstractList_Verify HIObject_Verify
  683. #define HIAbstractList_somInit SOMObject_somInit
  684. #define HIAbstractList_somUninit SOMObject_somUninit
  685. #define HIAbstractList_somDuplicateReference SOMObject_somDuplicateReference
  686. #define HIAbstractList_somCompareReference SOMObject_somCompareReference
  687. #define HIAbstractList_somRelease SOMObject_somRelease
  688. #define HIAbstractList_somFree SOMObject_somFree
  689. #define HIAbstractList_somCanDelete SOMObject_somCanDelete
  690. #define HIAbstractList_somGetClass SOMObject_somGetClass
  691. #define HIAbstractList_somGetClassName SOMObject_somGetClassName
  692. #define HIAbstractList_somGetSize SOMObject_somGetSize
  693. #define HIAbstractList_somIsA SOMObject_somIsA
  694. #define HIAbstractList_somRespondsTo SOMObject_somRespondsTo
  695. #define HIAbstractList_somIsInstanceOf SOMObject_somIsInstanceOf
  696. #define HIAbstractList_somDispatch SOMObject_somDispatch
  697. #define HIAbstractList_somClassDispatch SOMObject_somClassDispatch
  698. #define HIAbstractList_somCastObj SOMObject_somCastObj
  699. #define HIAbstractList_somResetObj SOMObject_somResetObj
  700. #define HIAbstractList_somPrintSelf SOMObject_somPrintSelf
  701. #define HIAbstractList_somDumpSelf SOMObject_somDumpSelf
  702. #define HIAbstractList_somDumpSelfInt SOMObject_somDumpSelfInt
  703. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  704.  
  705. #endif       /* SOM_HIAbstractList_h */
  706.  
  707. #ifndef SOM_HIList_h
  708. #define SOM_HIList_h
  709.  
  710.  
  711. /*
  712.  * Passthru lines: File: "C.h", "before"
  713.  */
  714. #include <HIItemStorage.h>
  715.  
  716. #include <som.h>
  717.  
  718. /*
  719.  * -- This emitter treats Method Tokens as Thunks by default.
  720.  * -- Use the sc modifier "nothunks" to change this default
  721.  */
  722. #undef somresolve_
  723. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  724.  
  725. /*
  726.  * Define the class name as an object type
  727.  */
  728. #ifndef HIList
  729. #define HIList SOMObject
  730. #endif
  731. #include <HILists.h>
  732.  
  733. /*
  734.  * Start of user-defined types:
  735.  */
  736.  
  737. /*
  738.  * End of user-defined types.
  739.  */
  740.  
  741. #define HIList_MajorVersion 0
  742. #define HIList_MinorVersion 0
  743.  
  744. /*
  745.  * External name shortening if required
  746.  */
  747. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  748. #define HIListClassData d
  749. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  750. /*--------------Migration------------*/
  751.  
  752. #ifdef OLDIBMSOMAPISUPPORT
  753. #define HIList_classObj somNewClassReference(HIList)
  754. #define _HIList HIList_classObj
  755. #define HIListCClassData HIListClassData
  756. #define HIListNewClass(major,minor) somNewVersionedClassReference(HIList,major,minor)
  757. #endif
  758.  
  759. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  760. #define HIListMetaClass SOMClass
  761.  
  762. #if PRAGMA_ALIGN_SUPPORTED
  763. #  pragma options align=power
  764. #endif
  765.  
  766. /*
  767.  * Declare the class data structure
  768.  */
  769. SOMEXTERN struct HIListClassDataStructure {
  770. #ifdef OLDIBMSOMAPISUPPORT
  771.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  772. #else
  773.     long zero;
  774. #endif
  775.     somStaticClassInfo *sci;
  776.     somDToken        instanceDataToken;
  777.     long reserved [3];
  778.     somMToken InitList;
  779. } SOMDLINK HIListClassData;
  780.  
  781. #if PRAGMA_ALIGN_SUPPORTED
  782. #  pragma options align=reset
  783. #endif
  784.  
  785. #if !defined(HIList_Class_Source) && !defined(SOM_Module_hilists_Source)
  786. #if PRAGMA_IMPORT_SUPPORTED
  787. #pragma import list HIListClassData
  788. #endif
  789. #endif
  790.  
  791.  
  792. /*
  793.  * New macro for HIList
  794.  */
  795. #define HIListNew() somNewObject(HIList)
  796.  
  797. /*
  798.  * New Method: InitList
  799.  */
  800. typedef OSStatus   (SOMLINK *somTD_HIList_InitList)(HIList *somSelf, Environment *ev,
  801.         RefLabel* identifier,
  802.         HIWindow* window,
  803.         Rect* bounds,
  804.         HIItemStorage* itemStorage);
  805. #define somMD_HIList_InitList "::HIList::InitList"
  806. #define HIList_InitList(somSelf,ev,identifier,window,bounds,itemStorage) \
  807.     (SOM_Resolve(somSelf, HIList, InitList) \
  808.     (somSelf,ev,identifier,window,bounds,itemStorage))
  809. #ifndef SOMGD_InitList
  810.     #if defined _InitList || defined __InitList
  811.         #undef _InitList
  812.         #undef __InitList
  813.         #define SOMGD_InitList 1
  814.     #else
  815.         #define _InitList HIList_InitList
  816.     #endif /* _InitList */
  817. #endif /* SOMGD_InitList */
  818. #ifndef SOM_DONT_USE_INHERITED_MACROS
  819. #define HIList_InitAbstractList HIAbstractList_InitAbstractList
  820. #define HIList_AddItems HIAbstractList_AddItems
  821. #define HIList_DeleteItem HIAbstractList_DeleteItem
  822. #define HIList_SetItemImage HIAbstractList_SetItemImage
  823. #define HIList_GetItemImage HIAbstractList_GetItemImage
  824. #define HIList_SetItemMark HIAbstractList_SetItemMark
  825. #define HIList_GetItemMark HIAbstractList_GetItemMark
  826. #define HIList_SetItemIcon HIAbstractList_SetItemIcon
  827. #define HIList_GetItemIcon HIAbstractList_GetItemIcon
  828. #define HIList_SetItemChild HIAbstractList_SetItemChild
  829. #define HIList_GetItemChild HIAbstractList_GetItemChild
  830. #define HIList_SetItemEnabledState HIAbstractList_SetItemEnabledState
  831. #define HIList_GetItemEnabledState HIAbstractList_GetItemEnabledState
  832. #define HIList_SetItemAttributes HIAbstractList_SetItemAttributes
  833. #define HIList_GetItemAttributes HIAbstractList_GetItemAttributes
  834. #define HIList_SetItemRefLabel HIAbstractList_SetItemRefLabel
  835. #define HIList_GetItemRefLabel HIAbstractList_GetItemRefLabel
  836. #define HIList_GetItemCount HIAbstractList_GetItemCount
  837. #define HIList_SelectItem HIAbstractList_SelectItem
  838. #define HIList_DeselectItem HIAbstractList_DeselectItem
  839. #define HIList_GetSelectedItem HIAbstractList_GetSelectedItem
  840. #define HIList_AddItemCollectionItem HIAbstractList_AddItemCollectionItem
  841. #define HIList_GetItemCollectionItemData HIAbstractList_GetItemCollectionItemData
  842. #define HIList_RemoveItemCollectionItem HIAbstractList_RemoveItemCollectionItem
  843. #define HIList_GetEmbeddingParent HIPanel_GetEmbeddingParent
  844. #define HIList_InitPanel HIPanel_InitPanel
  845. #define HIList_RegisterInterestInAppleEvent HIPanel_RegisterInterestInAppleEvent
  846. #define HIList_HasValidContent HIPanel_HasValidContent
  847. #define HIList_GetDeepCollectionItemData HIPanel_GetDeepCollectionItemData
  848. #define HIList_GetWindow HIObject_GetWindow
  849. #define HIList_GetPort HIObject_GetPort
  850. #define HIList_GetRefLabel HIObject_GetRefLabel
  851. #define HIList_GetCollection HIObject_GetCollection
  852. #define HIList_Init HIObject_Init
  853. #define HIList_Terminate HIObject_Terminate
  854. #define HIList_Clone HIObject_Clone
  855. #define HIList_Release HIObject_Release
  856. #define HIList_GetOwnerCount HIObject_GetOwnerCount
  857. #define HIList_InitFromAERecord HIObject_InitFromAERecord
  858. #define HIList_WriteToAERecord HIObject_WriteToAERecord
  859. #define HIList_CalculateOptimalSize HIObject_CalculateOptimalSize
  860. #define HIList_GetBoundingRect HIObject_GetBoundingRect
  861. #define HIList_SetBoundingRect HIObject_SetBoundingRect
  862. #define HIList_SetPosition HIObject_SetPosition
  863. #define HIList_SetSize HIObject_SetSize
  864. #define HIList_GetUpdateRect HIObject_GetUpdateRect
  865. #define HIList_Enable HIObject_Enable
  866. #define HIList_Disable HIObject_Disable
  867. #define HIList_IsEnabled HIObject_IsEnabled
  868. #define HIList_Show HIObject_Show
  869. #define HIList_Hide HIObject_Hide
  870. #define HIList_IsVisible HIObject_IsVisible
  871. #define HIList_HandleAppleEvent HIObject_HandleAppleEvent
  872. #define HIList_HandleActivate HIObject_HandleActivate
  873. #define HIList_HandleDeactivate HIObject_HandleDeactivate
  874. #define HIList_HandleNavigation HIObject_HandleNavigation
  875. #define HIList_HandleMouseDownInContent HIObject_HandleMouseDownInContent
  876. #define HIList_HandleMouseMovedInContent HIObject_HandleMouseMovedInContent
  877. #define HIList_HandleMouseStoppedMovingInContent HIObject_HandleMouseStoppedMovingInContent
  878. #define HIList_HandleMouseUpInContent HIObject_HandleMouseUpInContent
  879. #define HIList_TakeUserInputFocus HIObject_TakeUserInputFocus
  880. #define HIList_ReleaseUserInputFocus HIObject_ReleaseUserInputFocus
  881. #define HIList_HasUserInputFocus HIObject_HasUserInputFocus
  882. #define HIList_CanReleaseUserInputFocus HIObject_CanReleaseUserInputFocus
  883. #define HIList_SetUserInputFocusFlags HIObject_SetUserInputFocusFlags
  884. #define HIList_GetUserInputFocusFlags HIObject_GetUserInputFocusFlags
  885. #define HIList_SetTitle HIObject_SetTitle
  886. #define HIList_GetTitle HIObject_GetTitle
  887. #define HIList_Draw HIObject_Draw
  888. #define HIList_Erase HIObject_Erase
  889. #define HIList_Invalidate HIObject_Invalidate
  890. #define HIList_GetDrawingMode HIObject_GetDrawingMode
  891. #define HIList_SetDrawingMode HIObject_SetDrawingMode
  892. #define HIList_SetBackgroundPattern HIObject_SetBackgroundPattern
  893. #define HIList_GetBackgroundPattern HIObject_GetBackgroundPattern
  894. #define HIList_Cut HIObject_Cut
  895. #define HIList_Copy HIObject_Copy
  896. #define HIList_Paste HIObject_Paste
  897. #define HIList_Clear HIObject_Clear
  898. #define HIList_GetClipboardSupportFlags HIObject_GetClipboardSupportFlags
  899. #define HIList_AddStateChangeCallback HIObject_AddStateChangeCallback
  900. #define HIList_RemoveStateChangeCallback HIObject_RemoveStateChangeCallback
  901. #define HIList_GetHIObjectFromRefLabel HIObject_GetHIObjectFromRefLabel
  902. #define HIList_GetNewHIObject HIObject_GetNewHIObject
  903. #define HIList_GetNewHIObjectFromResource HIObject_GetNewHIObjectFromResource
  904. #define HIList_DrawContent HIObject_DrawContent
  905. #define HIList_EraseContent HIObject_EraseContent
  906. #define HIList_TranslatePoint HIObject_TranslatePoint
  907. #define HIList_TranslateRect HIObject_TranslateRect
  908. #define HIList_StateChanged HIObject_StateChanged
  909. #define HIList_SetClipboardSupportFlags HIObject_SetClipboardSupportFlags
  910. #define HIList_Verify HIObject_Verify
  911. #define HIList_somInit SOMObject_somInit
  912. #define HIList_somUninit SOMObject_somUninit
  913. #define HIList_somDuplicateReference SOMObject_somDuplicateReference
  914. #define HIList_somCompareReference SOMObject_somCompareReference
  915. #define HIList_somRelease SOMObject_somRelease
  916. #define HIList_somFree SOMObject_somFree
  917. #define HIList_somCanDelete SOMObject_somCanDelete
  918. #define HIList_somGetClass SOMObject_somGetClass
  919. #define HIList_somGetClassName SOMObject_somGetClassName
  920. #define HIList_somGetSize SOMObject_somGetSize
  921. #define HIList_somIsA SOMObject_somIsA
  922. #define HIList_somRespondsTo SOMObject_somRespondsTo
  923. #define HIList_somIsInstanceOf SOMObject_somIsInstanceOf
  924. #define HIList_somDispatch SOMObject_somDispatch
  925. #define HIList_somClassDispatch SOMObject_somClassDispatch
  926. #define HIList_somCastObj SOMObject_somCastObj
  927. #define HIList_somResetObj SOMObject_somResetObj
  928. #define HIList_somPrintSelf SOMObject_somPrintSelf
  929. #define HIList_somDumpSelf SOMObject_somDumpSelf
  930. #define HIList_somDumpSelfInt SOMObject_somDumpSelfInt
  931. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  932.  
  933. #endif       /* SOM_HIList_h */
  934.  
  935. #ifndef SOM_HIMultipleSelectionList_h
  936. #define SOM_HIMultipleSelectionList_h
  937.  
  938.  
  939. #include <som.h>
  940.  
  941. /*
  942.  * -- This emitter treats Method Tokens as Thunks by default.
  943.  * -- Use the sc modifier "nothunks" to change this default
  944.  */
  945. #undef somresolve_
  946. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  947.  
  948. /*
  949.  * Define the class name as an object type
  950.  */
  951. #ifndef HIMultipleSelectionList
  952. #define HIMultipleSelectionList SOMObject
  953. #endif
  954. #include <HILists.h>
  955.  
  956. /*
  957.  * Start of user-defined types:
  958.  */
  959.  
  960. /*
  961.  * End of user-defined types.
  962.  */
  963.  
  964. #define HIMultipleSelectionList_MajorVersion 0
  965. #define HIMultipleSelectionList_MinorVersion 0
  966.  
  967. /*
  968.  * External name shortening if required
  969.  */
  970. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  971. #define HIMultipleSelectionListClassData d
  972. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  973. /*--------------Migration------------*/
  974.  
  975. #ifdef OLDIBMSOMAPISUPPORT
  976. #define HIMultipleSelectionList_classObj somNewClassReference(HIMultipleSelectionList)
  977. #define _HIMultipleSelectionList HIMultipleSelectionList_classObj
  978. #define HIMultipleSelectionListCClassData HIMultipleSelectionListClassData
  979. #define HIMultipleSelectionListNewClass(major,minor) somNewVersionedClassReference(HIMultipleSelectionList,major,minor)
  980. #endif
  981.  
  982. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  983. #define HIMultipleSelectionListMetaClass SOMClass
  984.  
  985. #if PRAGMA_ALIGN_SUPPORTED
  986. #  pragma options align=power
  987. #endif
  988.  
  989. /*
  990.  * Declare the class data structure
  991.  */
  992. SOMEXTERN struct HIMultipleSelectionListClassDataStructure {
  993. #ifdef OLDIBMSOMAPISUPPORT
  994.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  995. #else
  996.     long zero;
  997. #endif
  998.     somStaticClassInfo *sci;
  999.     somDToken        instanceDataToken;
  1000.     long reserved [3];
  1001.     somMToken InitMultipleSelectionList;
  1002.     somMToken SetItemSelectedState;
  1003.     somMToken GetItemSelectedState;
  1004.     somMToken GetSelectedItems;
  1005. } SOMDLINK HIMultipleSelectionListClassData;
  1006.  
  1007. #if PRAGMA_ALIGN_SUPPORTED
  1008. #  pragma options align=reset
  1009. #endif
  1010.  
  1011. #if !defined(HIMultipleSelectionList_Class_Source) && !defined(SOM_Module_hilists_Source)
  1012. #if PRAGMA_IMPORT_SUPPORTED
  1013. #pragma import list HIMultipleSelectionListClassData
  1014. #endif
  1015. #endif
  1016.  
  1017.  
  1018. /*
  1019.  * New macro for HIMultipleSelectionList
  1020.  */
  1021. #define HIMultipleSelectionListNew() somNewObject(HIMultipleSelectionList)
  1022.  
  1023. /*
  1024.  * New Method: InitMultipleSelectionList
  1025.  */
  1026. typedef OSStatus   (SOMLINK *somTD_HIMultipleSelectionList_InitMultipleSelectionList)(HIMultipleSelectionList *somSelf, Environment *ev,
  1027.         RefLabel* identifier,
  1028.         HIWindow* window,
  1029.         Rect* bounds,
  1030.         HIItemStorage* itemStorage);
  1031. #define somMD_HIMultipleSelectionList_InitMultipleSelectionList "::HIMultipleSelectionList::InitMultipleSelectionList"
  1032. #define HIMultipleSelectionList_InitMultipleSelectionList(somSelf,ev,identifier,window,bounds,itemStorage) \
  1033.     (SOM_Resolve(somSelf, HIMultipleSelectionList, InitMultipleSelectionList) \
  1034.     (somSelf,ev,identifier,window,bounds,itemStorage))
  1035. #ifndef SOMGD_InitMultipleSelectionList
  1036.     #if defined _InitMultipleSelectionList || defined __InitMultipleSelectionList
  1037.         #undef _InitMultipleSelectionList
  1038.         #undef __InitMultipleSelectionList
  1039.         #define SOMGD_InitMultipleSelectionList 1
  1040.     #else
  1041.         #define _InitMultipleSelectionList HIMultipleSelectionList_InitMultipleSelectionList
  1042.     #endif /* _InitMultipleSelectionList */
  1043. #endif /* SOMGD_InitMultipleSelectionList */
  1044.  
  1045. /*
  1046.  * New Method: SetItemSelectedState
  1047.  */
  1048. typedef OSStatus   (SOMLINK *somTD_HIMultipleSelectionList_SetItemSelectedState)(HIMultipleSelectionList *somSelf, Environment *ev,
  1049.         HIItemIndex index,
  1050.         HIItemState selectedState);
  1051. #define somMD_HIMultipleSelectionList_SetItemSelectedState "::HIMultipleSelectionList::SetItemSelectedState"
  1052. #define HIMultipleSelectionList_SetItemSelectedState(somSelf,ev,index,selectedState) \
  1053.     (SOM_Resolve(somSelf, HIMultipleSelectionList, SetItemSelectedState) \
  1054.     (somSelf,ev,index,selectedState))
  1055. #ifndef SOMGD_SetItemSelectedState
  1056.     #if defined _SetItemSelectedState || defined __SetItemSelectedState
  1057.         #undef _SetItemSelectedState
  1058.         #undef __SetItemSelectedState
  1059.         #define SOMGD_SetItemSelectedState 1
  1060.     #else
  1061.         #define _SetItemSelectedState HIMultipleSelectionList_SetItemSelectedState
  1062.     #endif /* _SetItemSelectedState */
  1063. #endif /* SOMGD_SetItemSelectedState */
  1064.  
  1065. /*
  1066.  * New Method: GetItemSelectedState
  1067.  */
  1068. typedef HIItemState   (SOMLINK *somTD_HIMultipleSelectionList_GetItemSelectedState)(HIMultipleSelectionList *somSelf, Environment *ev,
  1069.         HIItemIndex index);
  1070. #define somMD_HIMultipleSelectionList_GetItemSelectedState "::HIMultipleSelectionList::GetItemSelectedState"
  1071. #define HIMultipleSelectionList_GetItemSelectedState(somSelf,ev,index) \
  1072.     (SOM_Resolve(somSelf, HIMultipleSelectionList, GetItemSelectedState) \
  1073.     (somSelf,ev,index))
  1074. #ifndef SOMGD_GetItemSelectedState
  1075.     #if defined _GetItemSelectedState || defined __GetItemSelectedState
  1076.         #undef _GetItemSelectedState
  1077.         #undef __GetItemSelectedState
  1078.         #define SOMGD_GetItemSelectedState 1
  1079.     #else
  1080.         #define _GetItemSelectedState HIMultipleSelectionList_GetItemSelectedState
  1081.     #endif /* _GetItemSelectedState */
  1082. #endif /* SOMGD_GetItemSelectedState */
  1083.  
  1084. /*
  1085.  * New Method: GetSelectedItems
  1086.  */
  1087. typedef OSStatus   (SOMLINK *somTD_HIMultipleSelectionList_GetSelectedItems)(HIMultipleSelectionList *somSelf, Environment *ev,
  1088.         UInt32 requestedCount,
  1089.         UInt32* actualCount,
  1090.         HIItemIndex* indexArray);
  1091. #define somMD_HIMultipleSelectionList_GetSelectedItems "::HIMultipleSelectionList::GetSelectedItems"
  1092. #define HIMultipleSelectionList_GetSelectedItems(somSelf,ev,requestedCount,actualCount,indexArray) \
  1093.     (SOM_Resolve(somSelf, HIMultipleSelectionList, GetSelectedItems) \
  1094.     (somSelf,ev,requestedCount,actualCount,indexArray))
  1095. #ifndef SOMGD_GetSelectedItems
  1096.     #if defined _GetSelectedItems || defined __GetSelectedItems
  1097.         #undef _GetSelectedItems
  1098.         #undef __GetSelectedItems
  1099.         #define SOMGD_GetSelectedItems 1
  1100.     #else
  1101.         #define _GetSelectedItems HIMultipleSelectionList_GetSelectedItems
  1102.     #endif /* _GetSelectedItems */
  1103. #endif /* SOMGD_GetSelectedItems */
  1104. #ifndef SOM_DONT_USE_INHERITED_MACROS
  1105. #define HIMultipleSelectionList_InitList HIList_InitList
  1106. #define HIMultipleSelectionList_InitAbstractList HIAbstractList_InitAbstractList
  1107. #define HIMultipleSelectionList_AddItems HIAbstractList_AddItems
  1108. #define HIMultipleSelectionList_DeleteItem HIAbstractList_DeleteItem
  1109. #define HIMultipleSelectionList_SetItemImage HIAbstractList_SetItemImage
  1110. #define HIMultipleSelectionList_GetItemImage HIAbstractList_GetItemImage
  1111. #define HIMultipleSelectionList_SetItemMark HIAbstractList_SetItemMark
  1112. #define HIMultipleSelectionList_GetItemMark HIAbstractList_GetItemMark
  1113. #define HIMultipleSelectionList_SetItemIcon HIAbstractList_SetItemIcon
  1114. #define HIMultipleSelectionList_GetItemIcon HIAbstractList_GetItemIcon
  1115. #define HIMultipleSelectionList_SetItemChild HIAbstractList_SetItemChild
  1116. #define HIMultipleSelectionList_GetItemChild HIAbstractList_GetItemChild
  1117. #define HIMultipleSelectionList_SetItemEnabledState HIAbstractList_SetItemEnabledState
  1118. #define HIMultipleSelectionList_GetItemEnabledState HIAbstractList_GetItemEnabledState
  1119. #define HIMultipleSelectionList_SetItemAttributes HIAbstractList_SetItemAttributes
  1120. #define HIMultipleSelectionList_GetItemAttributes HIAbstractList_GetItemAttributes
  1121. #define HIMultipleSelectionList_SetItemRefLabel HIAbstractList_SetItemRefLabel
  1122. #define HIMultipleSelectionList_GetItemRefLabel HIAbstractList_GetItemRefLabel
  1123. #define HIMultipleSelectionList_GetItemCount HIAbstractList_GetItemCount
  1124. #define HIMultipleSelectionList_SelectItem HIAbstractList_SelectItem
  1125. #define HIMultipleSelectionList_DeselectItem HIAbstractList_DeselectItem
  1126. #define HIMultipleSelectionList_GetSelectedItem HIAbstractList_GetSelectedItem
  1127. #define HIMultipleSelectionList_AddItemCollectionItem HIAbstractList_AddItemCollectionItem
  1128. #define HIMultipleSelectionList_GetItemCollectionItemData HIAbstractList_GetItemCollectionItemData
  1129. #define HIMultipleSelectionList_RemoveItemCollectionItem HIAbstractList_RemoveItemCollectionItem
  1130. #define HIMultipleSelectionList_GetEmbeddingParent HIPanel_GetEmbeddingParent
  1131. #define HIMultipleSelectionList_InitPanel HIPanel_InitPanel
  1132. #define HIMultipleSelectionList_RegisterInterestInAppleEvent HIPanel_RegisterInterestInAppleEvent
  1133. #define HIMultipleSelectionList_HasValidContent HIPanel_HasValidContent
  1134. #define HIMultipleSelectionList_GetDeepCollectionItemData HIPanel_GetDeepCollectionItemData
  1135. #define HIMultipleSelectionList_GetWindow HIObject_GetWindow
  1136. #define HIMultipleSelectionList_GetPort HIObject_GetPort
  1137. #define HIMultipleSelectionList_GetRefLabel HIObject_GetRefLabel
  1138. #define HIMultipleSelectionList_GetCollection HIObject_GetCollection
  1139. #define HIMultipleSelectionList_Init HIObject_Init
  1140. #define HIMultipleSelectionList_Terminate HIObject_Terminate
  1141. #define HIMultipleSelectionList_Clone HIObject_Clone
  1142. #define HIMultipleSelectionList_Release HIObject_Release
  1143. #define HIMultipleSelectionList_GetOwnerCount HIObject_GetOwnerCount
  1144. #define HIMultipleSelectionList_InitFromAERecord HIObject_InitFromAERecord
  1145. #define HIMultipleSelectionList_WriteToAERecord HIObject_WriteToAERecord
  1146. #define HIMultipleSelectionList_CalculateOptimalSize HIObject_CalculateOptimalSize
  1147. #define HIMultipleSelectionList_GetBoundingRect HIObject_GetBoundingRect
  1148. #define HIMultipleSelectionList_SetBoundingRect HIObject_SetBoundingRect
  1149. #define HIMultipleSelectionList_SetPosition HIObject_SetPosition
  1150. #define HIMultipleSelectionList_SetSize HIObject_SetSize
  1151. #define HIMultipleSelectionList_GetUpdateRect HIObject_GetUpdateRect
  1152. #define HIMultipleSelectionList_Enable HIObject_Enable
  1153. #define HIMultipleSelectionList_Disable HIObject_Disable
  1154. #define HIMultipleSelectionList_IsEnabled HIObject_IsEnabled
  1155. #define HIMultipleSelectionList_Show HIObject_Show
  1156. #define HIMultipleSelectionList_Hide HIObject_Hide
  1157. #define HIMultipleSelectionList_IsVisible HIObject_IsVisible
  1158. #define HIMultipleSelectionList_HandleAppleEvent HIObject_HandleAppleEvent
  1159. #define HIMultipleSelectionList_HandleActivate HIObject_HandleActivate
  1160. #define HIMultipleSelectionList_HandleDeactivate HIObject_HandleDeactivate
  1161. #define HIMultipleSelectionList_HandleNavigation HIObject_HandleNavigation
  1162. #define HIMultipleSelectionList_HandleMouseDownInContent HIObject_HandleMouseDownInContent
  1163. #define HIMultipleSelectionList_HandleMouseMovedInContent HIObject_HandleMouseMovedInContent
  1164. #define HIMultipleSelectionList_HandleMouseStoppedMovingInContent HIObject_HandleMouseStoppedMovingInContent
  1165. #define HIMultipleSelectionList_HandleMouseUpInContent HIObject_HandleMouseUpInContent
  1166. #define HIMultipleSelectionList_TakeUserInputFocus HIObject_TakeUserInputFocus
  1167. #define HIMultipleSelectionList_ReleaseUserInputFocus HIObject_ReleaseUserInputFocus
  1168. #define HIMultipleSelectionList_HasUserInputFocus HIObject_HasUserInputFocus
  1169. #define HIMultipleSelectionList_CanReleaseUserInputFocus HIObject_CanReleaseUserInputFocus
  1170. #define HIMultipleSelectionList_SetUserInputFocusFlags HIObject_SetUserInputFocusFlags
  1171. #define HIMultipleSelectionList_GetUserInputFocusFlags HIObject_GetUserInputFocusFlags
  1172. #define HIMultipleSelectionList_SetTitle HIObject_SetTitle
  1173. #define HIMultipleSelectionList_GetTitle HIObject_GetTitle
  1174. #define HIMultipleSelectionList_Draw HIObject_Draw
  1175. #define HIMultipleSelectionList_Erase HIObject_Erase
  1176. #define HIMultipleSelectionList_Invalidate HIObject_Invalidate
  1177. #define HIMultipleSelectionList_GetDrawingMode HIObject_GetDrawingMode
  1178. #define HIMultipleSelectionList_SetDrawingMode HIObject_SetDrawingMode
  1179. #define HIMultipleSelectionList_SetBackgroundPattern HIObject_SetBackgroundPattern
  1180. #define HIMultipleSelectionList_GetBackgroundPattern HIObject_GetBackgroundPattern
  1181. #define HIMultipleSelectionList_Cut HIObject_Cut
  1182. #define HIMultipleSelectionList_Copy HIObject_Copy
  1183. #define HIMultipleSelectionList_Paste HIObject_Paste
  1184. #define HIMultipleSelectionList_Clear HIObject_Clear
  1185. #define HIMultipleSelectionList_GetClipboardSupportFlags HIObject_GetClipboardSupportFlags
  1186. #define HIMultipleSelectionList_AddStateChangeCallback HIObject_AddStateChangeCallback
  1187. #define HIMultipleSelectionList_RemoveStateChangeCallback HIObject_RemoveStateChangeCallback
  1188. #define HIMultipleSelectionList_GetHIObjectFromRefLabel HIObject_GetHIObjectFromRefLabel
  1189. #define HIMultipleSelectionList_GetNewHIObject HIObject_GetNewHIObject
  1190. #define HIMultipleSelectionList_GetNewHIObjectFromResource HIObject_GetNewHIObjectFromResource
  1191. #define HIMultipleSelectionList_DrawContent HIObject_DrawContent
  1192. #define HIMultipleSelectionList_EraseContent HIObject_EraseContent
  1193. #define HIMultipleSelectionList_TranslatePoint HIObject_TranslatePoint
  1194. #define HIMultipleSelectionList_TranslateRect HIObject_TranslateRect
  1195. #define HIMultipleSelectionList_StateChanged HIObject_StateChanged
  1196. #define HIMultipleSelectionList_SetClipboardSupportFlags HIObject_SetClipboardSupportFlags
  1197. #define HIMultipleSelectionList_Verify HIObject_Verify
  1198. #define HIMultipleSelectionList_somInit SOMObject_somInit
  1199. #define HIMultipleSelectionList_somUninit SOMObject_somUninit
  1200. #define HIMultipleSelectionList_somDuplicateReference SOMObject_somDuplicateReference
  1201. #define HIMultipleSelectionList_somCompareReference SOMObject_somCompareReference
  1202. #define HIMultipleSelectionList_somRelease SOMObject_somRelease
  1203. #define HIMultipleSelectionList_somFree SOMObject_somFree
  1204. #define HIMultipleSelectionList_somCanDelete SOMObject_somCanDelete
  1205. #define HIMultipleSelectionList_somGetClass SOMObject_somGetClass
  1206. #define HIMultipleSelectionList_somGetClassName SOMObject_somGetClassName
  1207. #define HIMultipleSelectionList_somGetSize SOMObject_somGetSize
  1208. #define HIMultipleSelectionList_somIsA SOMObject_somIsA
  1209. #define HIMultipleSelectionList_somRespondsTo SOMObject_somRespondsTo
  1210. #define HIMultipleSelectionList_somIsInstanceOf SOMObject_somIsInstanceOf
  1211. #define HIMultipleSelectionList_somDispatch SOMObject_somDispatch
  1212. #define HIMultipleSelectionList_somClassDispatch SOMObject_somClassDispatch
  1213. #define HIMultipleSelectionList_somCastObj SOMObject_somCastObj
  1214. #define HIMultipleSelectionList_somResetObj SOMObject_somResetObj
  1215. #define HIMultipleSelectionList_somPrintSelf SOMObject_somPrintSelf
  1216. #define HIMultipleSelectionList_somDumpSelf SOMObject_somDumpSelf
  1217. #define HIMultipleSelectionList_somDumpSelfInt SOMObject_somDumpSelfInt
  1218. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  1219.  
  1220. #endif       /* SOM_HIMultipleSelectionList_h */
  1221.  
  1222. #ifndef SOM_HIMenu_h
  1223. #define SOM_HIMenu_h
  1224.  
  1225.  
  1226. #include <som.h>
  1227.  
  1228. /*
  1229.  * -- This emitter treats Method Tokens as Thunks by default.
  1230.  * -- Use the sc modifier "nothunks" to change this default
  1231.  */
  1232. #undef somresolve_
  1233. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  1234.  
  1235. /*
  1236.  * Define the class name as an object type
  1237.  */
  1238. #ifndef HIMenu
  1239. #define HIMenu SOMObject
  1240. #endif
  1241. #include <HILists.h>
  1242.  
  1243. /*
  1244.  * Start of user-defined types:
  1245.  */
  1246.  
  1247. /*
  1248.  * End of user-defined types.
  1249.  */
  1250.  
  1251. #define HIMenu_MajorVersion 0
  1252. #define HIMenu_MinorVersion 0
  1253.  
  1254. /*
  1255.  * External name shortening if required
  1256.  */
  1257. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  1258. #define HIMenuClassData d
  1259. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  1260. /*--------------Migration------------*/
  1261.  
  1262. #ifdef OLDIBMSOMAPISUPPORT
  1263. #define HIMenu_classObj somNewClassReference(HIMenu)
  1264. #define _HIMenu HIMenu_classObj
  1265. #define HIMenuCClassData HIMenuClassData
  1266. #define HIMenuNewClass(major,minor) somNewVersionedClassReference(HIMenu,major,minor)
  1267. #endif
  1268.  
  1269. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  1270. #define HIMenuMetaClass SOMClass
  1271.  
  1272. #if PRAGMA_ALIGN_SUPPORTED
  1273. #  pragma options align=power
  1274. #endif
  1275.  
  1276. /*
  1277.  * Declare the class data structure
  1278.  */
  1279. SOMEXTERN struct HIMenuClassDataStructure {
  1280. #ifdef OLDIBMSOMAPISUPPORT
  1281.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  1282. #else
  1283.     long zero;
  1284. #endif
  1285.     somStaticClassInfo *sci;
  1286.     somDToken        instanceDataToken;
  1287.     long reserved [3];
  1288.     somMToken InitMenu;
  1289.     somMToken SetItemAccelerator;
  1290.     somMToken GetItemAccelerator;
  1291.     somMToken SetItemAppleEvent;
  1292.     somMToken GetItemAppleEvent;
  1293.     somMToken SetNextMenu;
  1294.     somMToken GetNextMenu;
  1295.     somMToken GetMenuRef;
  1296.     somMToken PopDown;
  1297.     somMethodProc *SetRootHIMenu;
  1298.     somMethodProc *GetRootHIMenu;
  1299.     somMethodProc *SetMenuFlashCount;
  1300.     somMethodProc *GetMenuFlashCount;
  1301. } SOMDLINK HIMenuClassData;
  1302.  
  1303. #if PRAGMA_ALIGN_SUPPORTED
  1304. #  pragma options align=reset
  1305. #endif
  1306.  
  1307. #if !defined(HIMenu_Class_Source) && !defined(SOM_Module_hilists_Source)
  1308. #if PRAGMA_IMPORT_SUPPORTED
  1309. #pragma import list HIMenuClassData
  1310. #endif
  1311. #endif
  1312.  
  1313.  
  1314. /*
  1315.  * New macro for HIMenu
  1316.  */
  1317. #define HIMenuNew() somNewObject(HIMenu)
  1318.  
  1319. /*
  1320.  * New Method: InitMenu
  1321.  */
  1322. typedef OSStatus   (SOMLINK *somTD_HIMenu_InitMenu)(HIMenu *somSelf, Environment *ev,
  1323.         RefLabel* identifier);
  1324. #define somMD_HIMenu_InitMenu "::HIMenu::InitMenu"
  1325. #define HIMenu_InitMenu(somSelf,ev,identifier) \
  1326.     (SOM_Resolve(somSelf, HIMenu, InitMenu) \
  1327.     (somSelf,ev,identifier))
  1328. #ifndef SOMGD_InitMenu
  1329.     #if defined _InitMenu || defined __InitMenu
  1330.         #undef _InitMenu
  1331.         #undef __InitMenu
  1332.         #define SOMGD_InitMenu 1
  1333.     #else
  1334.         #define _InitMenu HIMenu_InitMenu
  1335.     #endif /* _InitMenu */
  1336. #endif /* SOMGD_InitMenu */
  1337.  
  1338. /*
  1339.  * New Method: SetItemAccelerator
  1340.  */
  1341. typedef OSStatus   (SOMLINK *somTD_HIMenu_SetItemAccelerator)(HIMenu *somSelf, Environment *ev,
  1342.         HIItemIndex index,
  1343.         UInt16 modifiers,
  1344.         UInt16 accelerator);
  1345. #define somMD_HIMenu_SetItemAccelerator "::HIMenu::SetItemAccelerator"
  1346. #define HIMenu_SetItemAccelerator(somSelf,ev,index,modifiers,accelerator) \
  1347.     (SOM_Resolve(somSelf, HIMenu, SetItemAccelerator) \
  1348.     (somSelf,ev,index,modifiers,accelerator))
  1349. #ifndef SOMGD_SetItemAccelerator
  1350.     #if defined _SetItemAccelerator || defined __SetItemAccelerator
  1351.         #undef _SetItemAccelerator
  1352.         #undef __SetItemAccelerator
  1353.         #define SOMGD_SetItemAccelerator 1
  1354.     #else
  1355.         #define _SetItemAccelerator HIMenu_SetItemAccelerator
  1356.     #endif /* _SetItemAccelerator */
  1357. #endif /* SOMGD_SetItemAccelerator */
  1358.  
  1359. /*
  1360.  * New Method: GetItemAccelerator
  1361.  */
  1362. typedef OSStatus   (SOMLINK *somTD_HIMenu_GetItemAccelerator)(HIMenu *somSelf, Environment *ev,
  1363.         HIItemIndex index,
  1364.         UInt16* modifiers,
  1365.         UInt16* accelerator);
  1366. #define somMD_HIMenu_GetItemAccelerator "::HIMenu::GetItemAccelerator"
  1367. #define HIMenu_GetItemAccelerator(somSelf,ev,index,modifiers,accelerator) \
  1368.     (SOM_Resolve(somSelf, HIMenu, GetItemAccelerator) \
  1369.     (somSelf,ev,index,modifiers,accelerator))
  1370. #ifndef SOMGD_GetItemAccelerator
  1371.     #if defined _GetItemAccelerator || defined __GetItemAccelerator
  1372.         #undef _GetItemAccelerator
  1373.         #undef __GetItemAccelerator
  1374.         #define SOMGD_GetItemAccelerator 1
  1375.     #else
  1376.         #define _GetItemAccelerator HIMenu_GetItemAccelerator
  1377.     #endif /* _GetItemAccelerator */
  1378. #endif /* SOMGD_GetItemAccelerator */
  1379.  
  1380. /*
  1381.  * New Method: SetItemAppleEvent
  1382.  */
  1383. typedef OSStatus   (SOMLINK *somTD_HIMenu_SetItemAppleEvent)(HIMenu *somSelf, Environment *ev,
  1384.         HIItemIndex index,
  1385.         AppleEvent* theEvent);
  1386. #define somMD_HIMenu_SetItemAppleEvent "::HIMenu::SetItemAppleEvent"
  1387. #define HIMenu_SetItemAppleEvent(somSelf,ev,index,theEvent) \
  1388.     (SOM_Resolve(somSelf, HIMenu, SetItemAppleEvent) \
  1389.     (somSelf,ev,index,theEvent))
  1390. #ifndef SOMGD_SetItemAppleEvent
  1391.     #if defined _SetItemAppleEvent || defined __SetItemAppleEvent
  1392.         #undef _SetItemAppleEvent
  1393.         #undef __SetItemAppleEvent
  1394.         #define SOMGD_SetItemAppleEvent 1
  1395.     #else
  1396.         #define _SetItemAppleEvent HIMenu_SetItemAppleEvent
  1397.     #endif /* _SetItemAppleEvent */
  1398. #endif /* SOMGD_SetItemAppleEvent */
  1399.  
  1400. /*
  1401.  * New Method: GetItemAppleEvent
  1402.  */
  1403. typedef OSStatus   (SOMLINK *somTD_HIMenu_GetItemAppleEvent)(HIMenu *somSelf, Environment *ev,
  1404.         HIItemIndex index,
  1405.         AppleEvent* theEvent);
  1406. #define somMD_HIMenu_GetItemAppleEvent "::HIMenu::GetItemAppleEvent"
  1407. #define HIMenu_GetItemAppleEvent(somSelf,ev,index,theEvent) \
  1408.     (SOM_Resolve(somSelf, HIMenu, GetItemAppleEvent) \
  1409.     (somSelf,ev,index,theEvent))
  1410. #ifndef SOMGD_GetItemAppleEvent
  1411.     #if defined _GetItemAppleEvent || defined __GetItemAppleEvent
  1412.         #undef _GetItemAppleEvent
  1413.         #undef __GetItemAppleEvent
  1414.         #define SOMGD_GetItemAppleEvent 1
  1415.     #else
  1416.         #define _GetItemAppleEvent HIMenu_GetItemAppleEvent
  1417.     #endif /* _GetItemAppleEvent */
  1418. #endif /* SOMGD_GetItemAppleEvent */
  1419.  
  1420. /*
  1421.  * New Method: SetNextMenu
  1422.  */
  1423. typedef OSStatus   (SOMLINK *somTD_HIMenu_SetNextMenu)(HIMenu *somSelf, Environment *ev,
  1424.         HIMenu* nextMenu);
  1425. #define somMD_HIMenu_SetNextMenu "::HIMenu::SetNextMenu"
  1426. #define HIMenu_SetNextMenu(somSelf,ev,nextMenu) \
  1427.     (SOM_Resolve(somSelf, HIMenu, SetNextMenu) \
  1428.     (somSelf,ev,nextMenu))
  1429. #ifndef SOMGD_SetNextMenu
  1430.     #if defined _SetNextMenu || defined __SetNextMenu
  1431.         #undef _SetNextMenu
  1432.         #undef __SetNextMenu
  1433.         #define SOMGD_SetNextMenu 1
  1434.     #else
  1435.         #define _SetNextMenu HIMenu_SetNextMenu
  1436.     #endif /* _SetNextMenu */
  1437. #endif /* SOMGD_SetNextMenu */
  1438.  
  1439. /*
  1440.  * New Method: GetNextMenu
  1441.  */
  1442. typedef OSStatus   (SOMLINK *somTD_HIMenu_GetNextMenu)(HIMenu *somSelf, Environment *ev,
  1443.         HIMenu** nextMenu);
  1444. #define somMD_HIMenu_GetNextMenu "::HIMenu::GetNextMenu"
  1445. #define HIMenu_GetNextMenu(somSelf,ev,nextMenu) \
  1446.     (SOM_Resolve(somSelf, HIMenu, GetNextMenu) \
  1447.     (somSelf,ev,nextMenu))
  1448. #ifndef SOMGD_GetNextMenu
  1449.     #if defined _GetNextMenu || defined __GetNextMenu
  1450.         #undef _GetNextMenu
  1451.         #undef __GetNextMenu
  1452.         #define SOMGD_GetNextMenu 1
  1453.     #else
  1454.         #define _GetNextMenu HIMenu_GetNextMenu
  1455.     #endif /* _GetNextMenu */
  1456. #endif /* SOMGD_GetNextMenu */
  1457.  
  1458. /*
  1459.  * Direct call procedure
  1460.  */
  1461. typedef void   (SOMLINK *somTD_HIMenu_SetRootHIMenu)(Environment *ev,
  1462.         HIMenu* rootMenuPanel);
  1463. #define HIMenu_SetRootHIMenu ((somTD_HIMenu_SetRootHIMenu) HIMenuClassData.SetRootHIMenu)
  1464. #ifndef SOMGD_SetRootHIMenu
  1465.     #if defined _SetRootHIMenu || defined __SetRootHIMenu
  1466.         #undef _SetRootHIMenu
  1467.         #undef __SetRootHIMenu
  1468.         #define SOMGD_SetRootHIMenu 1
  1469.     #else
  1470.         #define _SetRootHIMenu HIMenu_SetRootHIMenu
  1471.     #endif /* _SetRootHIMenu */
  1472. #endif /* SOMGD_SetRootHIMenu */
  1473.  
  1474. /*
  1475.  * Direct call procedure
  1476.  */
  1477. typedef HIMenu*   (SOMLINK *somTD_HIMenu_GetRootHIMenu)(Environment *ev);
  1478. #define HIMenu_GetRootHIMenu ((somTD_HIMenu_GetRootHIMenu) HIMenuClassData.GetRootHIMenu)
  1479. #ifndef SOMGD_GetRootHIMenu
  1480.     #if defined _GetRootHIMenu || defined __GetRootHIMenu
  1481.         #undef _GetRootHIMenu
  1482.         #undef __GetRootHIMenu
  1483.         #define SOMGD_GetRootHIMenu 1
  1484.     #else
  1485.         #define _GetRootHIMenu HIMenu_GetRootHIMenu
  1486.     #endif /* _GetRootHIMenu */
  1487. #endif /* SOMGD_GetRootHIMenu */
  1488.  
  1489. /*
  1490.  * Direct call procedure
  1491.  */
  1492. typedef void   (SOMLINK *somTD_HIMenu_SetMenuFlashCount)(Environment *ev,
  1493.         UInt32 count);
  1494. #define HIMenu_SetMenuFlashCount ((somTD_HIMenu_SetMenuFlashCount) HIMenuClassData.SetMenuFlashCount)
  1495. #ifndef SOMGD_SetMenuFlashCount
  1496.     #if defined _SetMenuFlashCount || defined __SetMenuFlashCount
  1497.         #undef _SetMenuFlashCount
  1498.         #undef __SetMenuFlashCount
  1499.         #define SOMGD_SetMenuFlashCount 1
  1500.     #else
  1501.         #define _SetMenuFlashCount HIMenu_SetMenuFlashCount
  1502.     #endif /* _SetMenuFlashCount */
  1503. #endif /* SOMGD_SetMenuFlashCount */
  1504.  
  1505. /*
  1506.  * Direct call procedure
  1507.  */
  1508. typedef UInt32   (SOMLINK *somTD_HIMenu_GetMenuFlashCount)(Environment *ev);
  1509. #define HIMenu_GetMenuFlashCount ((somTD_HIMenu_GetMenuFlashCount) HIMenuClassData.GetMenuFlashCount)
  1510. #ifndef SOMGD_GetMenuFlashCount
  1511.     #if defined _GetMenuFlashCount || defined __GetMenuFlashCount
  1512.         #undef _GetMenuFlashCount
  1513.         #undef __GetMenuFlashCount
  1514.         #define SOMGD_GetMenuFlashCount 1
  1515.     #else
  1516.         #define _GetMenuFlashCount HIMenu_GetMenuFlashCount
  1517.     #endif /* _GetMenuFlashCount */
  1518. #endif /* SOMGD_GetMenuFlashCount */
  1519. #ifndef SOM_DONT_USE_INHERITED_MACROS
  1520. #define HIMenu_InitAbstractList HIAbstractList_InitAbstractList
  1521. #define HIMenu_AddItems HIAbstractList_AddItems
  1522. #define HIMenu_DeleteItem HIAbstractList_DeleteItem
  1523. #define HIMenu_SetItemImage HIAbstractList_SetItemImage
  1524. #define HIMenu_GetItemImage HIAbstractList_GetItemImage
  1525. #define HIMenu_SetItemMark HIAbstractList_SetItemMark
  1526. #define HIMenu_GetItemMark HIAbstractList_GetItemMark
  1527. #define HIMenu_SetItemIcon HIAbstractList_SetItemIcon
  1528. #define HIMenu_GetItemIcon HIAbstractList_GetItemIcon
  1529. #define HIMenu_SetItemChild HIAbstractList_SetItemChild
  1530. #define HIMenu_GetItemChild HIAbstractList_GetItemChild
  1531. #define HIMenu_SetItemEnabledState HIAbstractList_SetItemEnabledState
  1532. #define HIMenu_GetItemEnabledState HIAbstractList_GetItemEnabledState
  1533. #define HIMenu_SetItemAttributes HIAbstractList_SetItemAttributes
  1534. #define HIMenu_GetItemAttributes HIAbstractList_GetItemAttributes
  1535. #define HIMenu_SetItemRefLabel HIAbstractList_SetItemRefLabel
  1536. #define HIMenu_GetItemRefLabel HIAbstractList_GetItemRefLabel
  1537. #define HIMenu_GetItemCount HIAbstractList_GetItemCount
  1538. #define HIMenu_SelectItem HIAbstractList_SelectItem
  1539. #define HIMenu_DeselectItem HIAbstractList_DeselectItem
  1540. #define HIMenu_GetSelectedItem HIAbstractList_GetSelectedItem
  1541. #define HIMenu_AddItemCollectionItem HIAbstractList_AddItemCollectionItem
  1542. #define HIMenu_GetItemCollectionItemData HIAbstractList_GetItemCollectionItemData
  1543. #define HIMenu_RemoveItemCollectionItem HIAbstractList_RemoveItemCollectionItem
  1544. #define HIMenu_GetEmbeddingParent HIPanel_GetEmbeddingParent
  1545. #define HIMenu_InitPanel HIPanel_InitPanel
  1546. #define HIMenu_RegisterInterestInAppleEvent HIPanel_RegisterInterestInAppleEvent
  1547. #define HIMenu_HasValidContent HIPanel_HasValidContent
  1548. #define HIMenu_GetDeepCollectionItemData HIPanel_GetDeepCollectionItemData
  1549. #define HIMenu_GetWindow HIObject_GetWindow
  1550. #define HIMenu_GetPort HIObject_GetPort
  1551. #define HIMenu_GetRefLabel HIObject_GetRefLabel
  1552. #define HIMenu_GetCollection HIObject_GetCollection
  1553. #define HIMenu_Init HIObject_Init
  1554. #define HIMenu_Terminate HIObject_Terminate
  1555. #define HIMenu_Clone HIObject_Clone
  1556. #define HIMenu_Release HIObject_Release
  1557. #define HIMenu_GetOwnerCount HIObject_GetOwnerCount
  1558. #define HIMenu_InitFromAERecord HIObject_InitFromAERecord
  1559. #define HIMenu_WriteToAERecord HIObject_WriteToAERecord
  1560. #define HIMenu_CalculateOptimalSize HIObject_CalculateOptimalSize
  1561. #define HIMenu_GetBoundingRect HIObject_GetBoundingRect
  1562. #define HIMenu_SetBoundingRect HIObject_SetBoundingRect
  1563. #define HIMenu_SetPosition HIObject_SetPosition
  1564. #define HIMenu_SetSize HIObject_SetSize
  1565. #define HIMenu_GetUpdateRect HIObject_GetUpdateRect
  1566. #define HIMenu_Enable HIObject_Enable
  1567. #define HIMenu_Disable HIObject_Disable
  1568. #define HIMenu_IsEnabled HIObject_IsEnabled
  1569. #define HIMenu_Show HIObject_Show
  1570. #define HIMenu_Hide HIObject_Hide
  1571. #define HIMenu_IsVisible HIObject_IsVisible
  1572. #define HIMenu_HandleAppleEvent HIObject_HandleAppleEvent
  1573. #define HIMenu_HandleActivate HIObject_HandleActivate
  1574. #define HIMenu_HandleDeactivate HIObject_HandleDeactivate
  1575. #define HIMenu_HandleNavigation HIObject_HandleNavigation
  1576. #define HIMenu_HandleMouseDownInContent HIObject_HandleMouseDownInContent
  1577. #define HIMenu_HandleMouseMovedInContent HIObject_HandleMouseMovedInContent
  1578. #define HIMenu_HandleMouseStoppedMovingInContent HIObject_HandleMouseStoppedMovingInContent
  1579. #define HIMenu_HandleMouseUpInContent HIObject_HandleMouseUpInContent
  1580. #define HIMenu_TakeUserInputFocus HIObject_TakeUserInputFocus
  1581. #define HIMenu_ReleaseUserInputFocus HIObject_ReleaseUserInputFocus
  1582. #define HIMenu_HasUserInputFocus HIObject_HasUserInputFocus
  1583. #define HIMenu_CanReleaseUserInputFocus HIObject_CanReleaseUserInputFocus
  1584. #define HIMenu_SetUserInputFocusFlags HIObject_SetUserInputFocusFlags
  1585. #define HIMenu_GetUserInputFocusFlags HIObject_GetUserInputFocusFlags
  1586. #define HIMenu_SetTitle HIObject_SetTitle
  1587. #define HIMenu_GetTitle HIObject_GetTitle
  1588. #define HIMenu_Draw HIObject_Draw
  1589. #define HIMenu_Erase HIObject_Erase
  1590. #define HIMenu_Invalidate HIObject_Invalidate
  1591. #define HIMenu_GetDrawingMode HIObject_GetDrawingMode
  1592. #define HIMenu_SetDrawingMode HIObject_SetDrawingMode
  1593. #define HIMenu_SetBackgroundPattern HIObject_SetBackgroundPattern
  1594. #define HIMenu_GetBackgroundPattern HIObject_GetBackgroundPattern
  1595. #define HIMenu_Cut HIObject_Cut
  1596. #define HIMenu_Copy HIObject_Copy
  1597. #define HIMenu_Paste HIObject_Paste
  1598. #define HIMenu_Clear HIObject_Clear
  1599. #define HIMenu_GetClipboardSupportFlags HIObject_GetClipboardSupportFlags
  1600. #define HIMenu_AddStateChangeCallback HIObject_AddStateChangeCallback
  1601. #define HIMenu_RemoveStateChangeCallback HIObject_RemoveStateChangeCallback
  1602. #define HIMenu_GetHIObjectFromRefLabel HIObject_GetHIObjectFromRefLabel
  1603. #define HIMenu_GetNewHIObject HIObject_GetNewHIObject
  1604. #define HIMenu_GetNewHIObjectFromResource HIObject_GetNewHIObjectFromResource
  1605. #define HIMenu_DrawContent HIObject_DrawContent
  1606. #define HIMenu_EraseContent HIObject_EraseContent
  1607. #define HIMenu_TranslatePoint HIObject_TranslatePoint
  1608. #define HIMenu_TranslateRect HIObject_TranslateRect
  1609. #define HIMenu_StateChanged HIObject_StateChanged
  1610. #define HIMenu_SetClipboardSupportFlags HIObject_SetClipboardSupportFlags
  1611. #define HIMenu_Verify HIObject_Verify
  1612. #define HIMenu_somInit SOMObject_somInit
  1613. #define HIMenu_somUninit SOMObject_somUninit
  1614. #define HIMenu_somDuplicateReference SOMObject_somDuplicateReference
  1615. #define HIMenu_somCompareReference SOMObject_somCompareReference
  1616. #define HIMenu_somRelease SOMObject_somRelease
  1617. #define HIMenu_somFree SOMObject_somFree
  1618. #define HIMenu_somCanDelete SOMObject_somCanDelete
  1619. #define HIMenu_somGetClass SOMObject_somGetClass
  1620. #define HIMenu_somGetClassName SOMObject_somGetClassName
  1621. #define HIMenu_somGetSize SOMObject_somGetSize
  1622. #define HIMenu_somIsA SOMObject_somIsA
  1623. #define HIMenu_somRespondsTo SOMObject_somRespondsTo
  1624. #define HIMenu_somIsInstanceOf SOMObject_somIsInstanceOf
  1625. #define HIMenu_somDispatch SOMObject_somDispatch
  1626. #define HIMenu_somClassDispatch SOMObject_somClassDispatch
  1627. #define HIMenu_somCastObj SOMObject_somCastObj
  1628. #define HIMenu_somResetObj SOMObject_somResetObj
  1629. #define HIMenu_somPrintSelf SOMObject_somPrintSelf
  1630. #define HIMenu_somDumpSelf SOMObject_somDumpSelf
  1631. #define HIMenu_somDumpSelfInt SOMObject_somDumpSelfInt
  1632. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  1633.  
  1634. #endif       /* SOM_HIMenu_h */
  1635.